﻿@using OA.Core;
@using OA.Web;
@using OA.Model;
@using OA.BLL;
@using OA.Core.Helper;

@model OA.Model.Voucher
@{
    CustomForm infoCustomForm = ViewBag.CustomForm;
    FormGroup infoFormGroup = ViewBag.FormGroup;
    ViewBag.Title = Model.Title + "---" + infoCustomForm.Name;

    CustomFormExtendInfo infoCustomFormExtendInfo = ViewBag.CustomFormExtendInfo;
    //Dictionary<string, string> dic = Model.ExtensionResultInfo.DicExtend;
    Layout = "~/Areas/Member/Views/Shared/_Layout.cshtml";
    List<ApprovalItem> approvalItems = Model.ApprovalItems;
    string printTemplate = ViewData["PrintTemplate"].ToString();
    string width = "980px";
    if(infoCustomForm.HorizontalPrinting)
    {
        width = "1400px";
    }
}

<script type="text/javascript" src="@ViewBag.OssUrl/front/js/jQuery.print.min.js"></script>
<div class="layui-my-content" style="width:@width; ">
    <style>
        body{background-color:#fff;}
        .layui-table, .layui-table-view {
            margin: 0px !important;
            margin-top: -1px !important;
            
        }
        .list-group-item{display:inline-block;}
            .list-group-item span {
                font-size: 12px;
            }
        .layui-table td, .layui-table th {
            padding: 4px 4px 4px 8px;
            font-size: 12px;
        }
        

        .mytable2 tbody tr td:not(:first-child) {
            border-left: none !important;
        }

        .mytable2 tbody tr td:not(:last-child) {
            border-right: none !important;
        }

        .mytable3 tbody tr td {
            border-right: none;
            border-left: none;
            border-bottom: none;
        }
        .extendTable thead tr:nth-child(3) th {
            font-size: 12px;
            color: #000;
        }
        .children th {
            font-size: 12px;
            color:#000;
        }
        .mytable tbody tr td span{text-align:center;}
        .mytable tbody tr td{text-align:center;}
    </style>
    @Html.Raw(printTemplate)
</div>
